﻿@{
    ViewBag.Title = "进口计划派车";
}

@section PSI_JS {
    <script src="@Url.Content("~/Scripts/PSI/App.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PSI/BaseCode/LookupEditor.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/BaseCode/DispatcherField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/Truck/TruckCompanyField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/Truck/TruckNumberField.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/PSI/InPlan/SendTruckMainForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/InPlan/SendTruckForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/PSI/InPlan/ChangeDispatcherForm.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>

    <script src="~/Scripts/PSI/Truck/TruckEditForm.js"></script>

    <script src="~/Scripts/PSI/Truck/TruckOtherEditForm.js"></script>

    <script src="~/Scripts/PSI/Truck/TruckCompanyEditForm.js"></script>
}


<script type="text/javascript">
    Ext.onReady(function () {
        var app = Ext.create("PSI.App", {
            userName: "@ViewBag.UserName"
        });

        app.createMainUI();

        var mp = app.getMainPanel();

        var mainForm = Ext.create("PSI.InPlan.SendTruckMainForm");

        mainForm.createUI("@ViewBag.UserName");

        mp.add(mainForm.getMainPanel());
    });
</script>
